n=eval(input("请输入一个年份"))
def runnian (n) :
    if n%4==0 and n%400==0 or n%100!=0:
    #
        return True
    else :
        return False
    
    # )n=eval(input("请输入一个年份")
            #   print(runnian (n))

print(runnian (n) )